<!---
@自动生成 BY Kupe框架 www.kupebank.com
#date : 2017-10-27 10:09:14
#path : app/template/admin/develop.add.html
--->
<style>
.__status__{
	display:none;
}
</style>
<form class="layui-form" action="" style="padding:10px;width:450px;">
  <div class="layui-form-item">
    <label class="layui-form-label">模块名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" >
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">唯一标识</label>
    <div class="layui-input-block">
      <input type="text" name="module" readonly required  lay-verify="required" placeholder="请输入唯一标识,必须不重复" autocomplete="off" class="layui-input" value="{$rt.module}">
    </div>
  </div>

   <div class="layui-form-item">
    <label class="layui-form-label">模块标签</label>
    <div class="layui-input-block">
      <input type="text" name="tag" lay-verify="" placeholder="请输入模块标签" autocomplete="off" class="layui-input" value="">
    </div>
  </div>


  
  
  <div class="layui-form-item">
    <label class="layui-form-label">是否开启</label>
    <div class="layui-input-block">
      <input type="checkbox" name="status" value=1 {if $rt.status}checked{/if} lay-skin="switch">
    </div>
  </div>
  <!----
  <div class="layui-form-item">
    <label class="layui-form-label">是否开启</label>
    <div class="layui-input-block">
      
	  <input type="radio" name="status" value="0" title="关闭">
      <input type="radio" name="status" value="1" title="开启" checked>
	   {html_radios value='开启' options=array('开启','关闭') name="status"}
	 

	 
    </div>
  </div>
 --->
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">模块简介</label>
    <div class="layui-input-block">
      <textarea name="desc" placeholder="请输入模块简介" class="layui-textarea">{$rt.desc}</textarea>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">作者</label>
    <div class="layui-input-block">
      <input type="text" name="auth" required  lay-verify="required" placeholder="请输入作者" autocomplete="off" class="layui-input" value="">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">     排序 </label>
    <div class="layui-input-block">
      <input type="text" name="porder" required  lay-verify="number" placeholder="请输入排序" autocomplete="off" class="layui-input" value="">
    </div>
  </div>



  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
 
<script>
formSubmit('{_url m="doedit"}','formDemo','url:{_url m='index' ajax=1}');
</script>

<script>
/*编辑专用*/
$(function(){
	{foreach $rt as $k => $v}		
		$("input[name='{$k}'][type='text']").val("{$v}");		
	{/foreach}	
});
</script>